package com.gxuwz.util;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DateUtils {

	public static final String YEAR = "yyyy";
	public static final String MONTH = "MM";
	public static final String DAY = "dd";
	public static final String HOUR = "HH" ;
	public static final String SECOND = "mm";
	
	public static final String DATETIME_DEFAULT_FORMAT = "yyyy-MM-dd HH:mm:ss";
	
	public static int getDay() {
		return Integer.parseInt(new SimpleDateFormat(DAY).format(new Date()));
	}
	
	public static String getNowSpecialFormat(String specialFormat) {
		return new SimpleDateFormat(specialFormat).format(new Date());
	}
	
	public static String getNowDefaultFormat() {
		return new SimpleDateFormat(DATETIME_DEFAULT_FORMAT).format(new Date());
	}
	
}
